<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Ricerca Viaggio per ID</title>
	<link rel="stylesheet" type="text/css" href="../styles/style.css" />
</h:head>
<h:body>
<div id="container">
<div id="box">

<header class="banner">
<span id="titoloPagina"> Inserisci l'identificativo del viaggio che vuoi ricercare </span>
</header>

<div id="externalborderReg">
<p:spacer height="80px" />
	<h:form>
			
			 <h:panelGroup  >
			<div id="infoAgg" style="text-align: center;">
			<h:outputText value="Id viaggio non valido, riprova" rendered="#{param.noIst}"/><br/>
			<h:outputText value="Il viaggio non è stato creato, disponibilità insufficienti" rendered="#{param.nonCommit}"/><br/>
			</div>
			</h:panelGroup>
			<p:spacer height="40px" /> 
			
		<div id="ricercaViaggio">
			<h:panelGrid columns="3" id="viaggioGrid" style="margin-left:51px; margin-right:51px;">
						
				<p:outputLabel for="idViaggio" value="ID Viaggio:"></p:outputLabel>
				<p:inputText id="idViaggio" value="#{pagamentoPP.idViaggio}" placeholder="ID Viaggio" required="true" />
				<p:message for="idViaggio" display="icon"/>			

			</h:panelGrid>
		
		</div>
<p:spacer height="40px"/>
<div id="cercaViaggioButton">
<h:commandLink id="registerlink" update="viaggioGrid" action="#{pagamentoPP.settaIstanze}">
<div class="button" id="register">
Ricerca Viaggio
</div>
</h:commandLink>
</div>
    
    </h:form>	


</div>
</div>
<div id="push">
</div>
</div>

<div id="footer">
<h:button id="homepage" value="Homepage" outcome="index.xhtml"></h:button>
</div>

</h:body>
    
</html>